package com.zy.project.system.user.repository.impl;

import com.zy.project.system.user.repository.SystemUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 系统用户持久层
 * Package: core.repository.impl
 * <p>
 * Description： TODO
 * <p>
 * Author: zhangyu
 * <p>
 * Date: Created in 2018-9-2 15:33
 * <p>
 * Company: mingtu
 * <p>
 * Copyright: Copyright (c) 2018
 * <p>
 * Version: 0.0.1
 * <p>
 * Modified By:
 */
public class SystemUserRepositoryImpl {

    @Autowired
    private SystemUserRepository systemUserRepository;

    /*public SystemUser findByUsername(String username){
        *//*SystemUser user = null;
        Finder finder = Finder.create(" from SystemUser as bean where bean.username =:username ");
        finder.setParam("username",username);
        List<SystemUser> users = systemUserRepository.findListByFinder(finder);
        if(users != null && users.size() == 1){
            user = users.get(0);
        }*//*
        String hql = " from SystemUser as bean where bean.username =? ";
        SystemUser u = (SystemUser)systemUserRepository.findUnique(hql, username);
        return u;
    }*/

}
